import 'dart:ui';

class Colour {
  static const Color text_1 = Color(0xFF333333);
  static const Color text_2 = Color(0xFF666666);
  static const Color text_3 = Color(0xFF97979F);
  static const Color text_4 = Color(0xff4C9FFF);
  static const Color text_5 = Color(0xFFCBCBCB);
  static const Color text_6 = Color(0xFFFF6400);
  static const Color text_7 = Color(0xFF1E1E1E);
  static const Color text_8 = Color(0xFF28C791);


  static const Color bg_1 = Color(0xFFF5F6F8);
  static const Color bg_2 = Color(0xffd8d8d8);
  static const Color bg_3 = Color(0xFFCCCCCC);
  static const Color bg_4 = Color(0xb34c9fff);
  static const Color bg_5 = Color(0xff4c9fff);
  static const Color bg_6 = Color(0xff9ec8f8);
  static const Color bg_7 = Color(0xFFF6F7F8);
  static const Color bg_8 = Color(0xFF28C791);
  static const Color bg_9 = Color(0xffF6FAFF);

  static const Color divider_1 = Color(0xffe2e2e2);


  static const List speechColors = [
    Color(0xFF4CD5BA),
    Color(0xFF568AFF),
    Color(0xFFFFD640),
    Color(0xFFFE6540),
  ];
  static getSpeechColor(num speechScore){
    if (speechScore == null){
      return speechColors[0];
    }
    if (speechScore >= 90){
      return speechColors[0];
    } else if (speechScore >= 80){
      return speechColors[1];
    } else if (speechScore >= 70){
      return speechColors[2];
    } else {
      return speechColors[3];
    }
  }
}
